#include<stdio.h>
int main(){
	int num1,num2,num3,num4,sum;
	float ava;
	scanf("%d %d %d %d",&num1,&num2,&num3,num4);
	sum=num1+num2+num3+num4;
	ava=sum/4;
	printf("Sum = %d; Average = %.1f",sum,ava);
	return 0;
} 
